package com.hycreate.platform.modules.delay;

import java.util.Date;

import org.hibernate.validator.constraints.Length;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hycreate.platform.common.persistence.DataEntity;

/**
 * 延期记录Entity
 * @author wang
 * @version 2017-11-30
 */
public class YhcgDelay extends DataEntity<YhcgDelay> {
	
	private static final long serialVersionUID = 1L;
	private String extensiondays;		// 延期天数（工作日）
	private String reasonsfodelay;		// 延期原因
	private String user;		// 录入的延期人员
	private String uid;		// 工单id
	private String status;
	private Date yantime;
	private Date shentime;
	private String shenname;
	private String shenuser;
	private String ju;
	private String name;
	private String number;
	private String content;
	private Date endtime;
	private Date starttime;
	private Date startshentime;
	private Date endshentime;
	private String quanwen;
	private String come;
	private String  type;
	private String responsibilityunit;
	private String supervisionunit;
	
	public String getCome() {
		return come;
	}

	public void setCome(String come) {
		this.come = come;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getResponsibilityunit() {
		return responsibilityunit;
	}

	public void setResponsibilityunit(String responsibilityunit) {
		this.responsibilityunit = responsibilityunit;
	}

	public String getSupervisionunit() {
		return supervisionunit;
	}

	public void setSupervisionunit(String supervisionunit) {
		this.supervisionunit = supervisionunit;
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEndtime() {
		return endtime;
	}

	public void setEndtime(Date endtime) {
		this.endtime = endtime;
	}
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getStarttime() {
		return starttime;
	}

	public void setStarttime(Date starttime) {
		this.starttime = starttime;
	}
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getStartshentime() {
		return startshentime;
	}

	public void setStartshentime(Date startshentime) {
		this.startshentime = startshentime;
	}
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEndshentime() {
		return endshentime;
	}

	public void setEndshentime(Date endshentime) {
		this.endshentime = endshentime;
	}

	public String getQuanwen() {
		return quanwen;
	}

	public void setQuanwen(String quanwen) {
		this.quanwen = quanwen;
	}

	public String getJu() {
		return ju;
	}

	public void setJu(String ju) {
		this.ju = ju;
	}

	public String getShenuser() {
		return shenuser;
	}

	public void setShenuser(String shenuser) {
		this.shenuser = shenuser;
	}

	public String getShenname() {
		return shenname;
	}

	public void setShenname(String shenname) {
		this.shenname = shenname;
	}

	
	
	
	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getShentime() {
		return shentime;
	}

	public void setShentime(Date shentime) {
		this.shentime = shentime;
	}
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getYantime() {
		return yantime;
	}

	public void setYantime(Date yantime) {
		this.yantime = yantime;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public YhcgDelay() {
		super();
	}

	public YhcgDelay(String id){
		super(id);
	}

	@Length(min=0, max=255, message="延期天数（工作日）长度必须介于 0 和 255 之间")
	public String getExtensiondays() {
		return extensiondays;
	}

	public void setExtensiondays(String extensiondays) {
		this.extensiondays = extensiondays;
	}
	
	public String getReasonsfodelay() {
		return reasonsfodelay;
	}

	public void setReasonsfodelay(String reasonsfodelay) {
		this.reasonsfodelay = reasonsfodelay;
	}
	
	@Length(min=0, max=255, message="录入的延期人员长度必须介于 0 和 255 之间")
	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}
	
	@Length(min=0, max=36, message="工单id长度必须介于 0 和 36 之间")
	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}
	
}